//package com.example.service.impl;
//
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//import com.example.enity.Admin;
//import com.example.mapper.AdminMapper;
//import com.example.service.AdminService;
//import org.springframework.stereotype.Service;
//
//@Service
//public class AdminServiceImpl extends ServiceImpl<AdminMapper, Admin> implements AdminService {
//    @Override
//    public Admin getAdminByUsernameAndPwd(String username, String pwd) {
//        QueryWrapper<Admin> wrapper = new QueryWrapper<Admin>();
//        wrapper.eq("name",username);
//        wrapper.eq("pwd",pwd);
//        return baseMapper.selectOne(wrapper);
//    }
//
//    @Override
//    public Admin getAdminByUsername(String username) {
//        QueryWrapper<Admin> wrapper = new QueryWrapper<Admin>();
//        wrapper.eq("name",username);
//        return baseMapper.selectOne(wrapper);
//    }
//}
